import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Like } from '../../entities/like.entity';
import { Article } from '../../entities/article.entity';
import { LikeController } from './like.controller';
import { LikeService } from './like.service';
import { ArticleModule } from '../article/article.module';
import { LikeAdminController } from './like-admin.controller';

@Module({
  imports: [TypeOrmModule.forFeature([Like, Article]), ArticleModule],
  controllers: [LikeController, LikeAdminController],
  providers: [LikeService],
  exports: [LikeService],
})
export class LikeModule {}
